<?php 
session_start();
include("include/config.php");
//$url = $_SERVER['HTTP_REFERER'];
$validate_array=array("validate","check","admin","noobskool");

if(isset($_REQUEST['sub_val'])){

	//$url = $_REQUEST['url'];
	if(in_array($_REQUEST['chk_val'],$validate_array)){
		$_SESSION['VALIDATE_ACTIVE']=1; 
		header("location:".SITE_URL);
	}

}

?>

<form name="frm_validate" id="frm_validate" action="" method="post">
<input type="hidden" name="url" value="<?php echo $url?>" />
<input type="text" name="chk_val" id="chk_val" /><br />
<input type="submit" name="sub_val" id="sub_val" />
</form>

